<div class="users Form">
<h1>Thay đổi Hồ sơ</h1>
<?php
$sex = array('Male' => 'Male', 'Female' => 'Female');
echo $this->Form->create('Profile', array('type' => 'file'));
/*echo $this->Form->input('User.username',array( 'readonly' => 'readonly', 'label' => 'Username không được thay đổi'));
echo $this->Form->input('User.password');
echo $this->Form->input('User.email');
//echo $this->Form->input('User.created');*/
echo $this->Form->input('name');
echo $this->Form->input('birthday',array(
    'label' => 'Date of birth',
    'dateFormat' => 'DMY',
    'minYear' => date('Y') - 100,
    'maxYear' => date('Y') + 100,
    ));
echo $this->Form->input('address');
echo $this->Form->input('phonenumber');
echo $this->Form->file('avatar', array('type' => 'file', 'label' => 'Avatar'));
echo $this->Form->input('introduced');
echo $this->Form->input('sex', array('multiple' => 'checkbox', 'options' => $sex));
echo $this->Form->input('id', array('type' => 'hidden'));
echo $this->Form->end('Cập nhật');

?>
</div>